home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / tclRegexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-17  |  876 b   |  33 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  *
  7.  * @(#) tclRegexp.h 1.2 94/08/09 11:45:53
  8.  */
  9.  
  10. #ifndef _TCL
  11. #include "tcl.h"
  12. #endif
  13. #ifndef _REGEXP
  14. #define _REGEXP 1
  15.  
  16. #define NSUBEXP  50
  17. typedef struct regexp {
  18.     char *startp[NSUBEXP];
  19.     char *endp[NSUBEXP];
  20.     char regstart;        /* Internal use only. */
  21.     char reganch;        /* Internal use only. */
  22.     char *regmust;        /* Internal use only. */
  23.     int regmlen;        /* Internal use only. */
  24.     char program[1];    /* Unwarranted chumminess with compiler. */
  25. } regexp;
  26.  
  27. extern regexp *TclRegComp _ANSI_ARGS_((char *exp));
  28. extern int TclRegExec _ANSI_ARGS_((regexp *prog, char *string, char *start));
  29. extern void TclRegSub _ANSI_ARGS_((regexp *prog, char *source, char *dest));
  30. extern void TclRegError _ANSI_ARGS_((char *msg));
  31.  
  32. #endif /* REGEXP */
  33.